import requests

r = requests.get('https://www.baidu.com/')
print(r.status_code)
print(requests.codes.ok)
if not r.status_code == requests.codes.ok:
    print('Request Fail')
else:
    print('Request Successfully')
